package com.project2.service;

import com.project2.bean.bo.CategoryAddBo;
import com.project2.bean.bo.CategoryUpdateBo;
import com.project2.bean.bo.ChildrenInCategoryUpdateBo;
import com.project2.bean.vo.DataInAdminCategoryVo;
import com.project2.bean.vo.DataInCategoryAddVo;
import com.project2.bean.vo.DataInCategoryL1Vo;

/**
 * @author zhangminghui
 * @date 2022/8/13
 */
public interface AdminCategoryService {
    DataInAdminCategoryVo queryAllCategoryInfo();

    void addCategoryByBo(CategoryAddBo categoryAddBo);

    DataInCategoryAddVo queryNewAddCategoryInfoByNameAndDesc(String name, String desc);

    void updateParentCategoryInfoByBo(CategoryUpdateBo categoryUpdateBo);

    void updateChildrenCategoryInfo(ChildrenInCategoryUpdateBo beanInChildren);

    void updateChildCategoryInfoByBo(CategoryUpdateBo categoryUpdateBo);

    DataInCategoryL1Vo queryAllL1LevelCategoryInfo();

    void deleteParentCategory(Integer id);

    void deleteChildCategory(Integer id);
}
